Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
39 | this.$fields.each(function(){ |
||
40 | var $field = $(this), |
||
41 | title = $field.attr('data-title').toLowerCase(), |
||
42 | description = $field.find('.description').text(); |
||
43 | |||
44 | // Check query against the field's title |
||
45 | if(title.match(query) || description.match(query)){ |
||
46 | matches.push($field); |
||
47 | } |
||
48 | }); |
||
49 | |||
53 | }; |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.